<?php
class App_Methods_Data_UserGroupApplications {
	
	public $userGroupId;
	public $userGroupName;
	/**
	 * 
	 * @var App_Methods_Data_ApplicationChecked[]
	 */
	public $applications = array();
	
	public function __construct(UserGroups $userGroup) {
		$this->userGroupId = $userGroup->getId();
		$this->userGroupName = (Core_Core::getInstance()->getApp()->lang == 'en') ? $userGroup->getNameEn() : $userGroup->getName();
	}
	
	public function addApplication(App_Methods_Data_ApplicationChecked $application) {
		$this->applications[] = $application;
	}
	
}